

package stcu.robjects;

import com.nvlled.route.*;
import java.net.SocketAddress;

public class GroupAdd extends GroupObject {

    private SocketAddress creatorAddress;
    private String groupTitle;
    private String creatorName;

    public GroupAdd(String gid, 
            SocketAddress address, 
            String title, 
            String name) {
        super(gid);
        creatorAddress = address;
        groupTitle = title;
        creatorName = name;
    }

    public String getName() {
        return creatorName;
    }

    public String getTitle() {
        return groupTitle;
    }

    public SocketAddress getAddress() {
        return creatorAddress;
    }

    @Override
    public String toString() {
        return getName() + " - " + getTitle();
    }
}
